﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<link rel="Stylesheet" type="text/css" media="screen" href="Screen.css" />
  <title>STP_GetTreeIndexFromVlanNumber</title>
</head>
<body>
	<h3>STP_GetTreeIndexFromVlanNumber</h3>
	<hr />
<pre>
unsigned int STP_GetTreeIndexFromVlanNumber
(
    const STP_BRIDGE*  bridge,
    unsigned int       vlanNumber
);
</pre>
	<h4>
		Summary</h4>
	<p>
		Retrieves a tree index mapped to a given VLAN.</p>
	<h4>
		Parameters</h4>
	<dl>
		<dt>bridge</dt>
		<dd>Pointer to a STP_BRIDGE object.</dd>
		<dt>vlanNumber</dt>
		<dd>The VLAN number. This must be between zero (inclusive) and the <code>maxVlanNumber</code>
            parameter that was passed to <a href="STP_CreateBridge.html">STP_CreateBridge</a> (inclusive).</dd>
	</dl>
	<h4>
		Return value</h4>
		<dl>
		<dd>The tree index mapped to the specified VLAN.</dd>
		</dl>
	<h4>
		Remarks</h4>
		<p>
		    You can call this function from within an STP callback.</p>

</body>
</html>
